#ifndef SEARCH_H_
#define SEARCH_H_

#include <stdint.h>

namespace opennav {

struct SearchHeader {
	int32_t country_tables_offset;
	uint8_t country_tables_size;
	int32_t city_tables_offset;
	int32_t city_tables_size;
	int32_t road_tables_offset;
	int32_t road_tables_size;
};

struct SortedCountryTableEntry {
	uint8_t id;
	uint8_t country_id;
};

struct CountryToCityTableEntry {
	uint8_t id;
	int32_t sorted_city_table_entry_id;
};

struct SortedCityTableEntry {
	int32_t id;
	int32_t city_id;
};

struct CityToRoadTableEntry {
	int32_t id;
	int32_t sorted_road_table_entry_id;
};

struct SortedRoadTableEntry {
	int32_t id;
	uint8_t label_id;
	int32_t road_id;
};

}

#endif /* SEARCH_H_ */
